package com.atguigu.spzx.user.api.fallback;

import com.atguigu.spyx.model.common.Result;
import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.h5.UserAddress;
import com.atguigu.spzx.user.api.UserClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author LT
 * @create 2023-11-21-20:30
 */
@Component
@Slf4j
public class UserClientFallback implements UserClient {

    @Override
    public Result<UserAddress> findUserAddressById(Long id) {
        log.error("远程查询用户地址失败，Id:{}" , id);
        return Result.fail();
    }
}
